﻿<UserControl x:Class="RLProject1.View.GridView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
             xmlns:src_vw="clr-namespace:RLProject1.View"
             xmlns:src_vm="clr-namespace:RLProject1.ViewModel"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <DataTemplate DataType="{x:Type src_vm:GridFieldViewModel}">
            <!-- Stelle das mit 'GridFielView dar-->
            <src_vw:GridFieldView />
        </DataTemplate>
    </UserControl.Resources>
    
    <!--<UniformGrid Rows="{Binding RowCount}">-->
    <StackPanel>
        <ItemsControl ItemsSource="{Binding QValuesRows}">
            
            <ItemsControl.ItemTemplate>
                <DataTemplate>
                    <ItemsControl ItemsSource="{Binding GFVM_Row}">
                        <ItemsControl.ItemsPanel>
                            <ItemsPanelTemplate>
                                <StackPanel Orientation="Horizontal" />
                                <!--<UniformGrid Columns="{Binding ColumnCount}"></UniformGrid>-->
                            </ItemsPanelTemplate>
                        </ItemsControl.ItemsPanel>
                        
                    </ItemsControl>
                </DataTemplate>
            </ItemsControl.ItemTemplate>
        </ItemsControl>
    </StackPanel>
    <!--</UniformGrid>-->
</UserControl>
